﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000827 RID: 2087
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetShopListScRsp : IMessage<GetShopListScRsp>, IMessage, IEquatable<GetShopListScRsp>, IDeepCloneable<GetShopListScRsp>, IBufferMessage
	{
		// Token: 0x17001A74 RID: 6772
		// (get) Token: 0x06005D8F RID: 23951 RVA: 0x000FA565 File Offset: 0x000F8765
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetShopListScRsp> Parser
		{
			get
			{
				return GetShopListScRsp._parser;
			}
		}

		// Token: 0x17001A75 RID: 6773
		// (get) Token: 0x06005D90 RID: 23952 RVA: 0x000FA56C File Offset: 0x000F876C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetShopListScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001A76 RID: 6774
		// (get) Token: 0x06005D91 RID: 23953 RVA: 0x000FA57E File Offset: 0x000F877E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetShopListScRsp.Descriptor;
			}
		}

		// Token: 0x06005D92 RID: 23954 RVA: 0x000FA585 File Offset: 0x000F8785
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetShopListScRsp()
		{
		}

		// Token: 0x06005D93 RID: 23955 RVA: 0x000FA598 File Offset: 0x000F8798
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetShopListScRsp(GetShopListScRsp other) : this()
		{
			this.shopList_ = other.shopList_.Clone();
			this.shopType_ = other.shopType_;
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06005D94 RID: 23956 RVA: 0x000FA5E5 File Offset: 0x000F87E5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetShopListScRsp Clone()
		{
			return new GetShopListScRsp(this);
		}

		// Token: 0x17001A77 RID: 6775
		// (get) Token: 0x06005D95 RID: 23957 RVA: 0x000FA5ED File Offset: 0x000F87ED
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<Shop> ShopList
		{
			get
			{
				return this.shopList_;
			}
		}

		// Token: 0x17001A78 RID: 6776
		// (get) Token: 0x06005D96 RID: 23958 RVA: 0x000FA5F5 File Offset: 0x000F87F5
		// (set) Token: 0x06005D97 RID: 23959 RVA: 0x000FA5FD File Offset: 0x000F87FD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ShopType
		{
			get
			{
				return this.shopType_;
			}
			set
			{
				this.shopType_ = value;
			}
		}

		// Token: 0x17001A79 RID: 6777
		// (get) Token: 0x06005D98 RID: 23960 RVA: 0x000FA606 File Offset: 0x000F8806
		// (set) Token: 0x06005D99 RID: 23961 RVA: 0x000FA60E File Offset: 0x000F880E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x06005D9A RID: 23962 RVA: 0x000FA617 File Offset: 0x000F8817
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetShopListScRsp);
		}

		// Token: 0x06005D9B RID: 23963 RVA: 0x000FA628 File Offset: 0x000F8828
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetShopListScRsp other)
		{
			return other != null && (other == this || (this.shopList_.Equals(other.shopList_) && this.ShopType == other.ShopType && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06005D9C RID: 23964 RVA: 0x000FA688 File Offset: 0x000F8888
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.shopList_.GetHashCode();
			if (this.ShopType != 0U)
			{
				num ^= this.ShopType.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06005D9D RID: 23965 RVA: 0x000FA6EE File Offset: 0x000F88EE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06005D9E RID: 23966 RVA: 0x000FA6F6 File Offset: 0x000F88F6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06005D9F RID: 23967 RVA: 0x000FA700 File Offset: 0x000F8900
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.ShopType != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.ShopType);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.Retcode);
			}
			this.shopList_.WriteTo(ref output, GetShopListScRsp._repeated_shopList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06005DA0 RID: 23968 RVA: 0x000FA76C File Offset: 0x000F896C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.shopList_.CalculateSize(GetShopListScRsp._repeated_shopList_codec);
			if (this.ShopType != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ShopType);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06005DA1 RID: 23969 RVA: 0x000FA7D8 File Offset: 0x000F89D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetShopListScRsp other)
		{
			if (other == null)
			{
				return;
			}
			this.shopList_.Add(other.shopList_);
			if (other.ShopType != 0U)
			{
				this.ShopType = other.ShopType;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06005DA2 RID: 23970 RVA: 0x000FA839 File Offset: 0x000F8A39
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06005DA3 RID: 23971 RVA: 0x000FA844 File Offset: 0x000F8A44
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 32U)
				{
					if (num != 56U)
					{
						if (num != 98U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.shopList_.AddEntriesFrom(ref input, GetShopListScRsp._repeated_shopList_codec);
						}
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					this.ShopType = input.ReadUInt32();
				}
			}
		}

		// Token: 0x0400241B RID: 9243
		private static readonly MessageParser<GetShopListScRsp> _parser = new MessageParser<GetShopListScRsp>(() => new GetShopListScRsp());

		// Token: 0x0400241C RID: 9244
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400241D RID: 9245
		public const int ShopListFieldNumber = 12;

		// Token: 0x0400241E RID: 9246
		private static readonly FieldCodec<Shop> _repeated_shopList_codec = FieldCodec.ForMessage<Shop>(98U, Shop.Parser);

		// Token: 0x0400241F RID: 9247
		private readonly RepeatedField<Shop> shopList_ = new RepeatedField<Shop>();

		// Token: 0x04002420 RID: 9248
		public const int ShopTypeFieldNumber = 4;

		// Token: 0x04002421 RID: 9249
		private uint shopType_;

		// Token: 0x04002422 RID: 9250
		public const int RetcodeFieldNumber = 7;

		// Token: 0x04002423 RID: 9251
		private uint retcode_;
	}
}
